From: Kenichi Handa Date: Tue, 23 Jul 2002 04:48:25 +0000 (+0000) Subject: (face_before_or_after_it_pos): Call X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~31420 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0b6658ddbb8b42fea34269013247cb0242eefd99;p=emacs.git (face_before_or_after_it_pos): Call FETCH_MULTIBYTE_CHAR with byte postion, not char position. --- diff --git a/src/xdisp.c b/src/xdisp.c index cf538ed9241..f8139626d79 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -2528,7 +2528,7 @@ face_before_or_after_it_pos (it, before_p) suitable for unibyte text if current_buffer is unibyte. */ if (it->multibyte_p) { - int c = FETCH_MULTIBYTE_CHAR (CHARPOS (pos)); + int c = FETCH_MULTIBYTE_CHAR (BYTEPOS (pos)); struct face *face = FACE_FROM_ID (it->f, face_id); face_id = FACE_FOR_CHAR (it->f, face, c); }